widget: Take a ref during ::unmap emission
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Mar 2015 12:45:03 +0000 (13:45 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Mar 2015 15:22:25 +0000 (16:22 +0100)
commitf5f6ad99819117d18b51e5db047437be24267fe0
tree3e220e4364c0c19f00f14216d704f6998d7dbc06
parent2e272106ef31bf839ed73d20a95c51fcccff8c76
widget: Take a ref during ::unmap emission

This ensures the widget data stays live long enough to perform invariants
check after emission if the widget happens to be destroyed on a callback.

https://bugzilla.gnome.org/show_bug.cgi?id=745829
gtk/gtkwidget.c